//
//  ChangPinCell.m
//  MyTest
//
//  Created by zhiyou on 16-4-21.
//  Copyright (c) 2016年 wangyang. All rights reserved.
//

#import "ChangPinCell.h"

@implementation ChangPinCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
        
        _lab = [[UILabel alloc] init];
        _lab.font = [UIFont systemFontOfSize:13];
        _lab.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_lab];
        
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.offset(0);
            make.height.equalTo(self.mas_height).multipliedBy(.7);
        }];
        
        [_lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.offset(0);
            make.bottom.offset(0);
        }];
    }
    return self;
}
@end
